<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/jsp/admin/includes/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>火秀号管理</title>
		<%@ include file="/WEB-INF/view/jsp/admin/includes/meta.jsp"%>
		<link type="text/css" rel="stylesheet" href="${ctx}/admin/css/admin.css" />
		<link href="${ctx}/widgets/extremecomponents/extremecomponents.css"
			type="text/css" rel="stylesheet" />
		<script type="text/javascript">
			function go(url)
			{
				window.location.href = url;
			}
			function deleData(url)
			{
				if(confirm("确定要删除吗？"))
				{
					window.location.href = url;
				}
			}
			function subForm()
			{
				var objFrom = document.getElementById("searchFrom");
				if(objFrom)
				{
					objFrom.submit();
				}
				 
			}
		</script>

	</head>

	<body>
		<div class="mask">
			<div class="container">
				<h3>
					火秀号管理
				</h3>
				<div id="content">
					<ec:table items="page.result" var="huoshowId" rowsDisplayed="10"
						autoIncludeParameters="true" retrieveRowsCallback="limit"
						action="${ctx}/admin/huoshowId.do">
						<ec:row highlightRow="true">
							<ec:column property="rowcount" cell="rowCount" sortable="false"
								title="序号" width="30" />
								<ec:column property="huoshowCode" title="火秀号" width="120"/>
							<ec:column property="level" title="火秀号等级" width="100"/>
							
							<ec:column property="null" title="是否使用" width="100">
								<c:choose>
									<c:when test="${huoshowId.used==true}">
										是
									</c:when>
									<c:otherwise>
										否
									</c:otherwise>
								</c:choose>
							</ec:column>
							<ec:column property="null" title="是否锁定" width="100">
								<c:choose>
									<c:when test="${huoshowId.locked==true}">
										是
									</c:when>
									<c:otherwise>
										否
									</c:otherwise>
								</c:choose>
							</ec:column>
						</ec:row>
					</ec:table>
					<div id="footer" class="footer">
						<security:authorize ifAnyGranted="ROLE_ADMIN">
							<input type="button" class="btn"
								onclick="javascript:go('${ctx}/admin/createdIds.do');"
								value='批量生产火秀号' />
						</security:authorize>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>